package cn.elegent.lock.config;


import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Configuration;

/**
 * consul的配置类
 */
@Configuration
@ConditionalOnProperty(prefix = "elegent.lock",name = "type",havingValue = "redlock")
@Data
public class RedisRedLockConfig extends LockConfig{

    /**
     * 红锁地址列表
     */
    @Value("${elegent.lock.address}")
    private String[] address;

}
